package rbac.models;

import com.et.ar.ActiveRecordBase;
import com.et.ar.annotations.BelongsTo;
import com.et.ar.annotations.Column;
import com.et.ar.annotations.Id;
import com.et.ar.annotations.Table;

@Table(name = "sessions")
public class Session extends ActiveRecordBase {
	@Id
	private Integer id;
	@Column
	private Integer userid;
	@Column
	private String sessionid;
	@Column
	private java.sql.Timestamp logintime;

	@BelongsTo(foreignKey = "userid")
	private User user;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getSessionid() {
		return sessionid;
	}

	public void setSessionid(String sessionid) {
		this.sessionid = sessionid;
	}

	public java.sql.Timestamp getLogintime() {
		return logintime;
	}

	public void setLogintime(java.sql.Timestamp logintime) {
		this.logintime = logintime;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
}
